<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ include file="/common/taglibs.jsp" %>
<%@page contentType="text/html;charset=UTF-8" %>
<%@page pageEncoding="UTF-8" %>
<html>
<head>
    <title>制作卡管理</title>
    <link type="text/css" rel="stylesheet" href="/static/styles/global.css"/>
    <link type="text/css" rel="stylesheet" href="/static/styles/main.css"/>
    <link type="text/css" rel="stylesheet" href="/static/styles/jobs-table.css"/>

    <script type="text/javascript" src="/static/scripts/card/card_batches.js"></script>

    <style type="text/css">
        label {
            display:block;
            float:left;
            clear:left;
        }

    </style>
</head>
<body class="yui-skin-sam">


<div id="doc3" class="yui-t7">
    <div id="bd" role="main">
        <div class="yui-g">
            <table cellspacing="0" class="yui-skin-sam noborder_table">
                <tr>
                    <td>
                        <label for="batchId">批次号</label>
                    </td>
                    <td>
                        <select id="batchId" name="batchId">
                            <option value="">--</option>
                            <c:forEach items="${batches}" var="batch" varStatus="loop">
                                <option value="${batch.id}">${batch.id}</option>
                            </c:forEach>
                        </select>
                    </td>

                    <td>
                        <input type="button" name="refresh_btn" id="refresh_btn" value="搜索"/>
                    </td>
                    <td>
                        <input type="button" name="export_btn" id="export_btn" value="导出" />
                    </td>
                    <td>
                        <input type="button" name="lock_btn" id="lock_btn" value="锁住" />
                    </td>
                    <td>
                        <input type="button" name="unlock_btn" id="unlock_btn" value="解锁" />
                    </td>
                    <td>
                        <input type="button" name="delivery_btn" id="delivery_btn" value="发货" />
                    </td>
                    <td>
                        <input type="button" name="status_btn" id="status_btn" value="修改状态" />
                    </td>
                    <td id="cardDes" style="padding-left: 50px;color: #ff0000"></td>
                </tr>

            </table>
        </div>
        <div class="yui-g">
            <table>
                <tr>
                    <td>批次号：</td>
                    <td id="td_batchId"></td>
                    <td>卡类别：</td>
                    <td id="td_cardType"></td>
                    <td>卡数量：</td>
                    <td id="td_cardQuantity"></td>
                    <td>星币值：</td>
                    <td id="td_cardValue"></td>
                    <td>面值：</td>
                    <td id="td_cardSalePrice"></td>
                    <td>充值截至日期：</td>
                    <td id="td_deadline"></td>
                    <td>有效期长度：</td>
                    <td id="td_cardValidityPeriod"></td>
                    <td>有效期类型：</td>
                    <td id="td_periodType"></td>
                    <td>开始时间：</td>
                    <td id="td_batchStartTime"></td>
                    <td>结束时间：</td>
                    <td id="td_batchEndTime"></td>
                    <td>解锁状态：</td>
                    <td style="color: #05A4FF" id="td_makeCardLock"></td>
                    <td style="display: none">备注：</td>
                    <td id="td_description" style="display: none"></td>
                </tr>

            </table>
        </div>
        <div class="yui-g">
            <div id="card-cards-table"></div>
            <div id="card-cards-paging"></div>
        </div>
    </div>
</div>


<div id="agent">
    <div class="hd">发货管理</div>
    <div class="bd">
        <form method="POST" action="/ozing/card/job/delivery">
            <input type="hidden" name="batchId" id="agent_batchId" />

            <table>
                <tr>
                    <td> <label for="agent_input">代理商：</label></td>
                    <td><input type="text" name="agent" size="30" id="agent_input"/></td>
                </tr>
                <tr>
                    <td><label for="cardIndexStart_agent">序号：</label></td>
                    <td><input type="text" name="cardIndexStart" size="15" id="cardIndexStart_agent"/>-<input type="text" size="15"  name="cardIndexEnd" id="cardIndexEnd_agent" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<div id="status">
    <div class="hd">状态管理</div>
    <div class="bd">
        <form method="POST" action="/ozing/card/job/status">
            <input type="hidden" name="batchId" id="status_batchId" />

            <table>
                <tr>
                    <td> <label for="agent_input">状态：</label></td>
                    <td>
                        <select name="status">
                            <option value="">--</option>
                            <option value="NOT_MADE">未制作</option>
                            <option value="NOT_DELIVERED">未发货</option>
                            <option value="POSTPONED">已延期</option>
                        </select>
                </tr>
                <tr>
                    <td><label for="cardIndexStart_status">序号：</label></td>
                    <td><input type="text" name="cardIndexStart" size="15" id="cardIndexStart_status"/>-<input type="text" size="15"  name="cardIndexEnd" id="cardIndexEnd_status" /></td>
                </tr>
            </table>
        </form>
    </div>
    <div class="ft">代理商信息</div>
</div>



</body>
</html>
